package com.example.demo.func;

import dev.langchain4j.agent.tool.Tool;

public class HighLevelCalculator {

    @Tool("计算俩数之和")
    public int sum(int a,int b){
        System.out.println(a+b);
        return a+b;
    }

    @Tool("计算俩数之差")
    public int sub(int a,int b){
        System.out.println(a-b);
        return a-b;
    }
}
